{include file=header.html}
<script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
<script language="javascript" type="text/javascript" src="{lib file=jquery.plugins/jquery.validate.js}"></script>
<style type="text/css">
input{margin:5px;}
.tab-frame{width:700px;}
</style>
<body>
<div class="sub-body">
<div class="tab-frame">
<div class="tab-title-1"><span>报价公式</span></div>
    <form action="{url app=calc&act=add&id=$calc.id}" method="post">
<table width="100%" cellspacing="0" cellpadding="0" class="tab-display">
        <tr>
            <th width="100">公式名称</th>
            <td align="left"><input type="text" name="info[name]" class="input-1" value="{$calc.name}" style="width:162px;"/></td>
	</tr>
	<tr id="calc_{$calc.id}">
            <th>变量</th>
            <td align="left">
                A:<input type="text" name="para[a]"  class="input-1" value="{$calc.para.a}"/><br/>
                B:<input type="text" name="para[b]"  class="input-1" value="{$calc.para.b}"/><br/>
                C:<input type="text" name="para[c]"  class="input-1" value="{$calc.para.c}"/><br/>
                D:<input type="text" name="para[d]"  class="input-1" value="{$calc.para.d}"/><br/>
            </td>
	</tr>
        <tr>
            <th>公式</th>
            <td align="left"><input type="text" name="info[gongshi]" class="input-1" value="{$calc.gongshi}" style="width:162px;"/>例：#+a*3+(2*b+15)  &nbsp;&nbsp;#代表输入值</td>
        </tr>
        <tr>
            <td colspan="2" align="center"><input type="submit" value="<!--{if $smarty.get.id}-->编辑<!--{else}-->增加<!--{/if}-->" class="btn-2"/></td>
	</tr>
</table>
        </form>
<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
</div>
</div>
</body>
</html>